local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1
L0_1 = {}
L0_1.group_id = 201032002
L1_1 = {}
L2_1 = {}
L2_1.config_id = 2001
L2_1.monster_id = 21010601
L3_1 = {}
L3_1.x = 20.756
L3_1.y = 246.238
L3_1.z = -50.013
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 334.043
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L3_1 = {}
L4_1 = 1101
L3_1[1] = L4_1
L2_1.affix = L3_1
L3_1 = {}
L3_1.config_id = 2004
L3_1.monster_id = 21010601
L4_1 = {}
L4_1.x = 9.77
L4_1.y = 246.23
L4_1.z = -48.314
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 46.076
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L4_1 = {}
L5_1 = 1101
L4_1[1] = L5_1
L3_1.affix = L4_1
L4_1 = {}
L4_1.config_id = 2011
L4_1.monster_id = 21010201
L5_1 = {}
L5_1.x = 14.037
L5_1.y = 246.1
L5_1.z = -45.834
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 19.381
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 1
L5_1 = {}
L6_1 = 1101
L5_1[1] = L6_1
L4_1.affix = L5_1
L5_1 = {}
L5_1.config_id = 2012
L5_1.monster_id = 21010201
L6_1 = {}
L6_1.x = 23.187
L6_1.y = 246.1
L6_1.z = -41.145
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 0.0
L6_1.y = 275.413
L6_1.z = 0.0
L5_1.rot = L6_1
L5_1.level = 1
L6_1 = {}
L7_1 = 1101
L6_1[1] = L7_1
L5_1.affix = L6_1
L6_1 = {}
L6_1.config_id = 2013
L6_1.monster_id = 21010201
L7_1 = {}
L7_1.x = 9.951
L7_1.y = 246.1
L7_1.z = -41.025
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 58.549
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 1
L7_1 = {}
L8_1 = 1101
L7_1[1] = L8_1
L6_1.affix = L7_1
L7_1 = {}
L7_1.config_id = 2014
L7_1.monster_id = 21010201
L8_1 = {}
L8_1.x = 19.525
L8_1.y = 246.1
L8_1.z = -35.832
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 207.968
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 1
L8_1 = {}
L9_1 = 1101
L8_1[1] = L9_1
L7_1.affix = L8_1
L8_1 = {}
L8_1.config_id = 2015
L8_1.monster_id = 21010301
L9_1 = {}
L9_1.x = 25.756
L9_1.y = 246.268
L9_1.z = -44.506
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 308.583
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L9_1 = {}
L10_1 = 1101
L9_1[1] = L10_1
L8_1.affix = L9_1
L9_1 = {}
L9_1.config_id = 2016
L9_1.monster_id = 21010301
L10_1 = {}
L10_1.x = 13.983
L10_1.y = 246.1
L10_1.z = -35.363
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 152.581
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L10_1 = {}
L11_1 = 1101
L10_1[1] = L11_1
L9_1.affix = L10_1
L10_1 = {}
L10_1.config_id = 2017
L10_1.monster_id = 21010301
L11_1 = {}
L11_1.x = 17.826
L11_1.y = 246.1
L11_1.z = -46.61
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 0.0
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L11_1 = {}
L12_1 = 1101
L11_1[1] = L12_1
L10_1.affix = L11_1
L11_1 = {}
L11_1.config_id = 2018
L11_1.monster_id = 21010301
L12_1 = {}
L12_1.x = 20.91
L12_1.y = 246.1
L12_1.z = -44.729
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 335.568
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L12_1 = {}
L13_1 = 1101
L12_1[1] = L13_1
L11_1.affix = L12_1
L12_1 = {}
L12_1.config_id = 2019
L12_1.monster_id = 20011201
L13_1 = {}
L13_1.x = 18.483
L13_1.y = 246.1
L13_1.z = -43.493
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 317.584
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 1
L13_1 = {}
L14_1 = 1101
L13_1[1] = L14_1
L12_1.affix = L13_1
L13_1 = {}
L13_1.config_id = 2020
L13_1.monster_id = 20011201
L14_1 = {}
L14_1.x = 20.476
L14_1.y = 246.1
L14_1.z = -42.046
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 313.629
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 1
L14_1 = {}
L15_1 = 1101
L14_1[1] = L15_1
L13_1.affix = L14_1
L14_1 = {}
L14_1.config_id = 2021
L14_1.monster_id = 20010801
L15_1 = {}
L15_1.x = 16.266
L15_1.y = 246.1
L15_1.z = -45.184
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 0.0
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 1
L15_1 = {}
L16_1 = 1101
L15_1[1] = L16_1
L14_1.affix = L15_1
L15_1 = {}
L15_1.config_id = 2022
L15_1.monster_id = 20010801
L16_1 = {}
L16_1.x = 11.073
L16_1.y = 246.1
L16_1.z = -42.593
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 72.028
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 1
L16_1 = {}
L17_1 = 1101
L16_1[1] = L17_1
L15_1.affix = L16_1
L16_1 = {}
L16_1.config_id = 2023
L16_1.monster_id = 20011001
L17_1 = {}
L17_1.x = 13.726
L17_1.y = 246.1
L17_1.z = -43.032
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 38.708
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 1
L17_1 = {}
L18_1 = 1101
L17_1[1] = L18_1
L16_1.affix = L17_1
L17_1 = {}
L17_1.config_id = 2024
L17_1.monster_id = 20011001
L18_1 = {}
L18_1.x = 11.543
L18_1.y = 246.1
L18_1.z = -44.676
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 63.496
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 1
L18_1 = {}
L19_1 = 1101
L18_1[1] = L19_1
L17_1.affix = L18_1
L18_1 = {}
L18_1.config_id = 2025
L18_1.monster_id = 20010501
L19_1 = {}
L19_1.x = 6.262
L19_1.y = 246.256
L19_1.z = -37.462
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 0.0
L19_1.y = 139.844
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 1
L19_1 = {}
L20_1 = 1101
L19_1[1] = L20_1
L18_1.affix = L19_1
L19_1 = {}
L19_1.config_id = 2026
L19_1.monster_id = 20010501
L20_1 = {}
L20_1.x = 11.748
L20_1.y = 246.1
L20_1.z = -39.392
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 0.0
L20_1.y = 152.085
L20_1.z = 0.0
L19_1.rot = L20_1
L19_1.level = 1
L20_1 = {}
L21_1 = 1101
L20_1[1] = L21_1
L19_1.affix = L20_1
L20_1 = {}
L20_1.config_id = 2028
L20_1.monster_id = 20010701
L21_1 = {}
L21_1.x = 20.863
L21_1.y = 246.1
L21_1.z = -38.632
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 0.0
L21_1.y = 237.852
L21_1.z = 0.0
L20_1.rot = L21_1
L20_1.level = 1
L21_1 = {}
L22_1 = 1101
L21_1[1] = L22_1
L20_1.affix = L21_1
L21_1 = {}
L21_1.config_id = 2029
L21_1.monster_id = 20010601
L22_1 = {}
L22_1.x = 21.542
L22_1.y = 246.1
L22_1.z = -40.194
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 0.0
L22_1.y = 260.066
L22_1.z = 0.0
L21_1.rot = L22_1
L21_1.level = 1
L22_1 = {}
L23_1 = 1101
L22_1[1] = L23_1
L21_1.affix = L22_1
L22_1 = {}
L22_1.config_id = 2037
L22_1.monster_id = 21010501
L23_1 = {}
L23_1.x = 7.961
L23_1.y = 246.268
L23_1.z = -36.074
L22_1.pos = L23_1
L23_1 = {}
L23_1.x = 0.0
L23_1.y = 109.471
L23_1.z = 0.0
L22_1.rot = L23_1
L22_1.level = 1
L23_1 = {}
L24_1 = 1101
L23_1[1] = L24_1
L22_1.affix = L23_1
L23_1 = {}
L23_1.config_id = 2038
L23_1.monster_id = 21011001
L24_1 = {}
L24_1.x = 25.897
L24_1.y = 246.275
L24_1.z = -40.932
L23_1.pos = L24_1
L24_1 = {}
L24_1.x = 0.0
L24_1.y = 267.107
L24_1.z = 0.0
L23_1.rot = L24_1
L23_1.level = 1
L24_1 = {}
L25_1 = 1101
L24_1[1] = L25_1
L23_1.affix = L24_1
L24_1 = {}
L24_1.config_id = 2039
L24_1.monster_id = 20011101
L25_1 = {}
L25_1.x = 13.759
L25_1.y = 246.1
L25_1.z = -38.018
L24_1.pos = L25_1
L25_1 = {}
L25_1.x = 0.0
L25_1.y = 151.626
L25_1.z = 0.0
L24_1.rot = L25_1
L24_1.level = 1
L25_1 = {}
L26_1 = 1101
L25_1[1] = L26_1
L24_1.affix = L25_1
L25_1 = {}
L25_1.config_id = 2040
L25_1.monster_id = 20011301
L26_1 = {}
L26_1.x = 16.86
L26_1.y = 246.1
L26_1.z = -36.946
L25_1.pos = L26_1
L26_1 = {}
L26_1.x = 0.0
L26_1.y = 185.057
L26_1.z = 0.0
L25_1.rot = L26_1
L25_1.level = 1
L26_1 = {}
L27_1 = 1101
L26_1[1] = L27_1
L25_1.affix = L26_1
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
L1_1[5] = L6_1
L1_1[6] = L7_1
L1_1[7] = L8_1
L1_1[8] = L9_1
L1_1[9] = L10_1
L1_1[10] = L11_1
L1_1[11] = L12_1
L1_1[12] = L13_1
L1_1[13] = L14_1
L1_1[14] = L15_1
L1_1[15] = L16_1
L1_1[16] = L17_1
L1_1[17] = L18_1
L1_1[18] = L19_1
L1_1[19] = L20_1
L1_1[20] = L21_1
L1_1[21] = L22_1
L1_1[22] = L23_1
L1_1[23] = L24_1
L1_1[24] = L25_1
monsters = L1_1
L1_1 = {}
npcs = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 2002
L2_1.gadget_id = 70900039
L3_1 = {}
L3_1.x = 17.389
L3_1.y = 246.1
L3_1.z = -38.835
L2_1.pos = L3_1
L3_1 = {}
L3_1.x = 0.0
L3_1.y = 0.0
L3_1.z = 0.0
L2_1.rot = L3_1
L2_1.level = 1
L3_1 = {}
L3_1.config_id = 2010
L3_1.gadget_id = 70900201
L4_1 = {}
L4_1.x = 17.379
L4_1.y = 247.91
L4_1.z = -38.836
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L4_1 = {}
L4_1.config_id = 2041
L4_1.gadget_id = 70211112
L5_1 = {}
L5_1.x = -0.219
L5_1.y = 246.237
L5_1.z = -48.757
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 62.361
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 11
L4_1.drop_tag = "\232\167\163\232\176\156\228\184\173\231\186\167\231\146\131\230\156\136"
L5_1 = GadgetState
L5_1 = L5_1.ChestLocked
L4_1.state = L5_1
L4_1.showcutscene = true
L4_1.isOneoff = true
L4_1.persistent = true
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
gadgets = L1_1
L1_1 = {}
regions = L1_1
L1_1 = {}
L2_1 = {}
L2_1.config_id = 1002003
L2_1.name = "GADGET_STATE_CHANGE_2003"
L3_1 = EventType
L3_1 = L3_1.EVENT_GADGET_STATE_CHANGE
L2_1.event = L3_1
L2_1.source = ""
L2_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_2003"
L2_1.action = "action_EVENT_GADGET_STATE_CHANGE_2003"
L2_1.trigger_count = 0
L3_1 = {}
L3_1.config_id = 1002008
L3_1.name = "CHALLENGE_FAIL_2008"
L4_1 = EventType
L4_1 = L4_1.EVENT_CHALLENGE_FAIL
L3_1.event = L4_1
L3_1.source = "101"
L3_1.condition = ""
L3_1.action = "action_EVENT_CHALLENGE_FAIL_2008"
L3_1.trigger_count = 0
L4_1 = {}
L4_1.config_id = 1002009
L4_1.name = "CHALLENGE_SUCCESS_2009"
L5_1 = EventType
L5_1 = L5_1.EVENT_CHALLENGE_SUCCESS
L4_1.event = L5_1
L4_1.source = "101"
L4_1.condition = ""
L4_1.action = "action_EVENT_CHALLENGE_SUCCESS_2009"
L4_1.trigger_count = 0
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
triggers = L1_1
L1_1 = {}
variables = L1_1
L1_1 = {}
L1_1.suite = 1
L1_1.end_suite = 0
L1_1.rand_suite = false
init_config = L1_1
L1_1 = {}
L2_1 = {}
L3_1 = {}
L2_1.monsters = L3_1
L3_1 = {}
L4_1 = 2002
L5_1 = 2041
L3_1[1] = L4_1
L3_1[2] = L5_1
L2_1.gadgets = L3_1
L3_1 = {}
L2_1.regions = L3_1
L3_1 = {}
L4_1 = "GADGET_STATE_CHANGE_2003"
L5_1 = "CHALLENGE_FAIL_2008"
L6_1 = "CHALLENGE_SUCCESS_2009"
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L2_1.triggers = L3_1
L2_1.rand_weight = 100
L3_1 = {}
L4_1 = {}
L5_1 = 2001
L6_1 = 2004
L7_1 = 2011
L8_1 = 2012
L9_1 = 2013
L10_1 = 2014
L11_1 = 2015
L12_1 = 2016
L13_1 = 2017
L14_1 = 2018
L15_1 = 2019
L16_1 = 2020
L17_1 = 2021
L18_1 = 2022
L19_1 = 2023
L20_1 = 2024
L21_1 = 2025
L22_1 = 2026
L23_1 = 2028
L24_1 = 2029
L25_1 = 2037
L26_1 = 2038
L27_1 = 2039
L28_1 = 2040
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L4_1[7] = L11_1
L4_1[8] = L12_1
L4_1[9] = L13_1
L4_1[10] = L14_1
L4_1[11] = L15_1
L4_1[12] = L16_1
L4_1[13] = L17_1
L4_1[14] = L18_1
L4_1[15] = L19_1
L4_1[16] = L20_1
L4_1[17] = L21_1
L4_1[18] = L22_1
L4_1[19] = L23_1
L4_1[20] = L24_1
L4_1[21] = L25_1
L4_1[22] = L26_1
L4_1[23] = L27_1
L4_1[24] = L28_1
L3_1.monsters = L4_1
L4_1 = {}
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L4_1.gadgets = L5_1
L5_1 = {}
L4_1.regions = L5_1
L5_1 = {}
L4_1.triggers = L5_1
L4_1.rand_weight = 100
L5_1 = {}
L6_1 = {}
L5_1.monsters = L6_1
L6_1 = {}
L7_1 = 2010
L6_1[1] = L7_1
L5_1.gadgets = L6_1
L6_1 = {}
L5_1.regions = L6_1
L6_1 = {}
L5_1.triggers = L6_1
L5_1.rand_weight = 100
L1_1[1] = L2_1
L1_1[2] = L3_1
L1_1[3] = L4_1
L1_1[4] = L5_1
suites = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A1_2.param2
  if 2002 == L2_2 then
    L2_2 = GadgetState
    L2_2 = L2_2.GearStart
    L3_2 = A1_2.param1
    if L2_2 == L3_2 then
      goto lbl_11
    end
  end
  L2_2 = false
  do return L2_2 end
  ::lbl_11::
  L2_2 = true
  return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_2003 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2
  L2_2 = ScriptLib
  L2_2 = L2_2.AutoMonsterTide
  L3_2 = A0_2
  L4_2 = 201
  L5_2 = 201032002
  L6_2 = {}
  L7_2 = 2019
  L8_2 = 2020
  L9_2 = 2021
  L10_2 = 2022
  L11_2 = 2023
  L12_2 = 2024
  L13_2 = 2025
  L14_2 = 2026
  L15_2 = 2028
  L16_2 = 2029
  L17_2 = 2039
  L18_2 = 2040
  L6_2[1] = L7_2
  L6_2[2] = L8_2
  L6_2[3] = L9_2
  L6_2[4] = L10_2
  L6_2[5] = L11_2
  L6_2[6] = L12_2
  L6_2[7] = L13_2
  L6_2[8] = L14_2
  L6_2[9] = L15_2
  L6_2[10] = L16_2
  L6_2[11] = L17_2
  L6_2[12] = L18_2
  L7_2 = 15
  L8_2 = 3
  L9_2 = 3
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.AutoMonsterTide
  L3_2 = A0_2
  L4_2 = 202
  L5_2 = 201032002
  L6_2 = {}
  L7_2 = 2011
  L8_2 = 2012
  L9_2 = 2013
  L10_2 = 2014
  L11_2 = 2015
  L12_2 = 2016
  L13_2 = 2037
  L14_2 = 2038
  L15_2 = 2017
  L16_2 = 2018
  L17_2 = 2001
  L18_2 = 2004
  L6_2[1] = L7_2
  L6_2[2] = L8_2
  L6_2[3] = L9_2
  L6_2[4] = L10_2
  L6_2[5] = L11_2
  L6_2[6] = L12_2
  L6_2[7] = L13_2
  L6_2[8] = L14_2
  L6_2[9] = L15_2
  L6_2[10] = L16_2
  L6_2[11] = L17_2
  L6_2[12] = L18_2
  L7_2 = 15
  L8_2 = 3
  L9_2 = 3
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  if 0 ~= L2_2 then
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.ActiveChallenge
  L3_2 = A0_2
  L4_2 = 101
  L5_2 = 5
  L6_2 = 30
  L7_2 = 201032002
  L8_2 = 30
  L9_2 = 0
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : active_challenge"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.KillEntityByConfigId
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 2010
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : kill_entity_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_2003 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 2002
  L5_2 = GadgetState
  L5_2 = L5_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.KillMonsterTide
  L3_2 = A0_2
  L4_2 = 201032002
  L5_2 = 201
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : kill_monster_tide"
    L2_2(L3_2, L4_2)
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.KillMonsterTide
  L3_2 = A0_2
  L4_2 = 201032002
  L5_2 = 202
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : kill_monster_tide"
    L2_2(L3_2, L4_2)
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.CreateGadget
  L3_2 = A0_2
  L4_2 = {}
  L4_2.config_id = 2010
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : create_gadget"
    L2_2(L3_2, L4_2)
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_FAIL_2008 = L1_1
function L1_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2
  L2_2 = ScriptLib
  L2_2 = L2_2.AddExtraGroupSuite
  L3_2 = A0_2
  L4_2 = 201032003
  L5_2 = 4
  L2_2(L3_2, L4_2, L5_2)
  L2_2 = ScriptLib
  L2_2 = L2_2.ShowReminder
  L3_2 = A0_2
  L4_2 = 10320101
  L2_2 = L2_2(L3_2, L4_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : active_reminder_ui"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupVariableValueByGroup
  L3_2 = A0_2
  L4_2 = "stageFlag"
  L5_2 = 1
  L6_2 = 201032003
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_groupVariable_by_group"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGroupGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 201032003
  L5_2 = 3004
  L6_2 = GadgetState
  L6_2 = L6_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = ScriptLib
  L2_2 = L2_2.SetGadgetStateByConfigId
  L3_2 = A0_2
  L4_2 = 2041
  L5_2 = GadgetState
  L5_2 = L5_2.Default
  L2_2 = L2_2(L3_2, L4_2, L5_2)
  if 0 ~= L2_2 then
    L2_2 = ScriptLib
    L2_2 = L2_2.PrintContextLog
    L3_2 = A0_2
    L4_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
    L2_2(L3_2, L4_2)
    L2_2 = -1
    return L2_2
  end
  L2_2 = 0
  return L2_2
end
action_EVENT_CHALLENGE_SUCCESS_2009 = L1_1
